wait_timeout = "60"
NB_onenet_cmd = [
    {
        "cmd": 'AT+MIPLCONFIG=0,183.230.40.40,5683',
        "match": 'AT\+MIPLCONFIG=0,183.230.40.40,5683\s{2}OK\s{2}',
        "wait": b'OK',
        "timeout": wait_timeout
    },
    {
        "cmd": 'AT+MIPLCONFIG?',
        "match": 'AT\+MIPLCONFIG\?\s{2}\+MIPLCONFIG:\d,[\d\.]+,\d+\s{4}OK\s{2}',
        "wait": b'OK',
        "timeout": wait_timeout
    },
    {
        "cmd": 'AT+MIPLCONFIG=?',
        "match": 'AT\+MIPLCONFIG=\?\s{2}\+MIPLCONFIG:\(\d-\d\),<[\w\_]+>,<\w+>\s{4}OK\s{2}',
        "wait": b'OK',
        "timeout": wait_timeout
    },
    {
        "cmd": 'AT+MIPLCREATEEXT',
        "match": 'AT\+MIPLCREATEEXT\s{2}\+MIPLCREATE: \d\s{4}OK\s{2}',
        "wait": b'OK',
        "timeout": wait_timeout
    },
    {
        "cmd": 'AT+MIPLCREATEEXT=?',
        "match": 'AT\+MIPLCREATEEXT=\?\s{2}\+MIPLCREATEEXT:\(\d-\d+\),<\w+>\s{4}OK\s{2}',
        "wait": b'OK',
        "timeout": wait_timeout
    },
    {
        "cmd": 'AT+MIPLDELETE=0',
        "match": 'AT\+MIPLDELETE=0\s{2}OK\s{2}',
        "wait": b'OK',
        "timeout": wait_timeout
    },
    {
        "cmd": 'AT+MIPLCREATE',
        "match": 'AT\+MIPLCREATE\s{2}\+MIPLCREATE:\d\s{4}OK\s{2}',
        "wait": b'OK',
        "timeout": wait_timeout
    },
    {
        "cmd": 'AT+MIPLCREATE=?',
        "match": 'AT\+MIPLCREATE=\?\s{2}\+MIPLCREATE:\(\d-\d+\),<\w+>\s{4}OK\s{2}',
        "wait": b'OK',
        "timeout": wait_timeout
    },
    {
        "cmd": 'AT+MIPLDELETE=0',
        "match": 'AT\+MIPLDELETE=0\s{2}OK\s{2}',
        "wait": b'OK',
        "timeout": wait_timeout
    },
    {
        "cmd": 'AT+MIPLDELETE=?',
        "match": 'AT\+MIPLDELETE=\?\s{2}\+MIPLDELETE:<\w+>\s{4}OK\s{2}',
        "wait": b'OK',
        "timeout": wait_timeout
    },
    # {
    #     "cmd": 'AT+MIPLOPEN=0,3600,30',
    #     "match": 'AT\+MIPLOPEN=0,3600,30\s{2}OK\s{2}',
    #     "wait": b'OK',
    #     "timeout": wait_timeout
    # },
    {
        "cmd": 'AT+MIPLOPEN=?',
        "match": 'AT\+MIPLOPEN=\?\s{2}\+MIPLOPEN:<\w+>,<\w+>\[,<\w+>\]\s{4}OK\s{2}',
        "wait": b'OK',
        "timeout": wait_timeout
    },
    # {
    #     "cmd": 'AT+MIPLCLOSE=0',
    #     "match": 'AT\+MIPLCLOSE=0\s{2}OK\s{2}',
    #     "wait": b'OK',
    #     "timeout": wait_timeout
    # },
    {
        "cmd": 'AT+MIPLCLOSE=?',
        "match": 'AT\+MIPLCLOSE=\?\s{2}\+MIPLCLOSE:<\w+>\s{4}OK\s{2}',
        "wait": b'OK',
        "timeout": wait_timeout
    },
]